package com.dhc.appbusinessfrm.ioc.network;

import com.dhc.appbusinessfrm.network.JsonRequestInterceptor;
import com.dhc.appbusinessfrm.network.MallErrorHandler;
import com.dhc.appbusinessfrm.network.NetAdapterWrapper;

import dagger.Module;
import dagger.Provides;
import retrofit.ErrorHandler;
import retrofit.RequestInterceptor;

/**
 * Created by xy on 2015/6/16.
 */
@Module(injects = NetAdapterWrapper.class)
public class NetRegisterModule {

    @Provides
    RequestInterceptor providerRequestInterceptor() {
        return new JsonRequestInterceptor();
    }

    @Provides
    ErrorHandler providerErrorHandler() {
        return new MallErrorHandler();
    }
}
